package com.diver.flinkdemo.entity.xxt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diver.flinkdemo.enums.DataEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 人员基础信息
 * @Author: jeecg-boot
 * @Date: 2022-05-10
 * @Version: V1.0
 */
@ApiModel(value = "person_basic_info对象", description = "人员基础信息")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("person_basic_info")
public class PersonBasicInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 人员全名
     */
    @Excel(name = "人员全名", width = 15)
    @ApiModelProperty(value = "人员全名")
    private String name;
    /**
     * 人员昵称
     */
    @Excel(name = "人员昵称", width = 15)
    @ApiModelProperty(value = "人员昵称")
    private String nickname;
    /**
     * 人员唯一标识，学号、编号等
     */
    @Excel(name = "人员唯一标识，学号、编号等", width = 15)
    @ApiModelProperty(value = "人员唯一标识，学号、编号等")
    private String ucode;
    /**
     * 身份证号
     */
    @Excel(name = "身份证号", width = 15)
    @ApiModelProperty(value = "身份证号")
    private String identityCard;
    /**
     * 人员类别
     */
    @Excel(name = "人员类别", width = 15, dicCode = "person_type")
    @ApiModelProperty(value = "人员类别")
    private String personType;
    /**
     * 人员职位id
     */
    @Excel(name = "人员职位", width = 15)
    @ApiModelProperty(value = "人员职位")
    private String positionId;
    /**
     * 性别
     */
    @Excel(name = "性别", width = 15, dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private String sex;
    /**
     * 出生日期
     */
    @Excel(name = "出生日期", width = 15)
    @ApiModelProperty(value = "出生日期")
    private String birth;
    /**
     * 手机号码
     */
    @Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "手机号码")
    private String phone;
//    /**
//     * 职位
//     */
//    @Excel(name = "职位", width = 15)
//    @ApiModelProperty(value = "职位")
//    private String position;
    // 临时方案
    /**
     * 是否健康官
     */
    @Excel(name = "是否健康官", width = 15)
    @ApiModelProperty(value = "是否健康官")
    private String isOffical;
    /**
     * 启用状态
     */
    @Excel(name = "启用状态", width = 15)
    @ApiModelProperty(value = "启用状态")
    private String status = DataEnum.ENABLE.getCode();
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String memo;
    /**
     * 数据来源（人员注册、人员导入、平台新增、人员同步）
     */
    @ApiModelProperty(value = "数据来源")
    private String dataSources;
    /**
     * 考勤id
     */
    @ApiModelProperty(value = "考勤id")
    private String attendanceId;
    /**
     * 租户ID
     */
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
